package city.spring.domain.entity.estimate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * estimate_project
 *
 * @author yzh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("estimate_project")
public class EstimateProjectEntity implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 评估项目
     */
    private String projectName;

    /**
     * 评估等级
     */
    private String projectLevel;

    /**
     * 能力完好描述
     */
    private String goodDescription;

    /**
     * 轻度受损描述
     */
    private String mildDamageDescription;

    /**
     * 中度受损描述
     */
    private String moderateDamageDescription;

    /**
     * 重度受损描述
     */
    private String seriousDamageDescription;

    private Integer goodMin;

    private Integer goodMax;

    private Integer mildMin;

    private Integer mildMax;

    private Integer moderateMin;

    private Integer moderateMax;

    private Integer seriousMin;

    private Integer seriousMax;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    @TableField(exist = false)
    private List<EstimateOptionEntity> estimateOptionEntities;

    @TableField(exist = false)
    private Map<String, List<EstimateOptionEntity>> itemOptions;

    @TableField(exist = false)
    private int points = 0;

}
